package com.easondongh.business.service;

import com.easondongh.business.domain.Customer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easondongh.business.domain.Provider;
import com.easondongh.common.vo.BasePageQueryVo;
import com.easondongh.common.vo.PageResult;
import com.easondongh.business.vo.CustomerQueryVo;

import java.util.List;

/**
 * @author EasonDongH
 * @date 2020/5/26 8:16
 */
public interface CustomerService extends IService<Customer>{

    /**
     * 根据查询条件分页查询客户
     * @param queryCondition
     * @return
     */
    PageResult<Customer> getByPage(BasePageQueryVo<CustomerQueryVo> queryCondition);

    /**
     * 启用该客户
     * @param id
     * @return
     */
    boolean enableById(Integer id);

    /**
     * 弃用该客户
     * @param id
     * @return
     */
    boolean disableById(Integer id);

    List<Customer> getAllEnableCustomer();
}
